package com.bulletelc.apollopre.module.main.home;

import com.bulletelc.apollopre.entity.BannerBean;
import com.bulletelc.apollopre.entity.Classify;
import com.bulletelc.apollopre.entity.ProductDetail;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * author: lhl
 * date  : 2018/01/12
 * desc  : TODO
 */

public interface HomeContract {

    interface View extends IView {

        void onSuccessSliderShow(List<BannerBean> bannerList);

        void onFailSliderShow(String fail);

        void onErrorSlideShow(String error);

        void onSuccessPackage(List<ProductDetail> productDetailList, int pageCount);

        void onFailPackage(String fail);

        void onErrorPackage(String error);

        void onSuccessHomeCate(List<Classify> classifyList);

        void onFailHomeCate(String fail);

        void onErrorHomeCate(String error);

    }

    interface Presenter extends IPresenter<View> {

        /**
         * 获取轮播产品
         */
        void getSliderShow();

        /**
         * 获取套餐数据
         */
        void getPackage(int page);

        /**
         * 获取首页分类
         */
        void getHomeCate();

    }


}
